<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>芝麻认证</title>
    <style>
        iframe:not(.huakai_iframe) {display:none !important;}
    </style>
</head>
<body>
</body>
<script type="text/javascript">
    var param = window.location.search;
    /**
     * 是否安卓浏览器
     * @returns {Boolean.isAndroid}
     */
    var isAndroid = function(){
        var u = navigator.userAgent, app = navigator.appVersion;
        var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
        return isAndroid;
    };
    /**
     * 是否IOS浏览器
     * @returns {Boolean.isIos}
     */
    var isIos = function(){
        var u = navigator.userAgent, app = navigator.appVersion;
        var isIos = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
        return isIos;
    };
    if (isIos()) {
        window.location.href = "huayanChat://"+param;
    } else if (isAndroid()) {
        window.location.href = "huayan123://"+param;
    }
</script>
</html>